package com.cd.system.jpa.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.cd.common.util.Enum.LqqRecordType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;


/**
 * @Description product entity
 * @Author lqq
 * @Date 2024/1/24 14:04
 **/
@Table(name = "lqqdb_java_study_record")
@Entity
@Data
@AllArgsConstructor
@NoArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class JavaStudyRecord implements Serializable{

    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    Long id;

    //name 计划名称
    @Column(name = "name")
    String name;

    //完成度,默认为0,101为一些记忆或需要查找的东西
    @Column(name = "completion")
    int completion;

    //优先级
    @Column(name = "priority")
    int priority;

    //备注
    @Column(name = "remark")
    String remark;

    //计划开始日期
    @Column(name = "start_date")
    Date startDate;

    //实际结束日期
    @Column(name = "end_date")
    Date endDate;

    //类型
    @Column(name = "type")
    LqqRecordType type;




}
